package com.jc.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "spring.aliyun.oss")
@Data
public class OSSConf {


//    String endpoint = "https://oss-cn-beijing.aliyuncs.com"; // 替换为你的Endpoint
//    String accessKeyId = "LTAI5t9J68BJxHp7eeg2eB3c";      // 替换为你的AccessKey
//    String accessKeySecret = "4zxCNsGYGhLBLeA9ZsHUeD23aAqrOQ"; // 替换为你的AccessKeySecret
//    String bucketName = "jc-1-dev";          // 替换为你的Bucket名称


    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

    private String rootDirectory = "policy";
    private long maxFileSize = 100 * 1024 * 1024; // 100MB

}
